let express = require('express');
let router = express.Router();

const { list,list2, search} = require('./handle');
/**
 * @param {string} filePath
 */
express.template = function (filePath) {
    let defaultDir = './template'
    return defaultDir + filePath
}
/* GET home page. */

/*   列表页 */
router.get('/',list)
router.get('/list', list)
router.get('/list2', list2)
router.get('/search',search)

module.exports = router;
